﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Data.Entitys.System
{
    /// <summary>
    /// 系统参数
    /// </summary>
    [Table("SYS_CONFIG")]
    public class SysConfig : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column("CONFIG_ID")]
        [MaxLength(32)]
        public string ConfigId { get; set; } = Guid.NewGuid().ToString("N");

        /// <summary>
        /// 参数名称
        /// </summary>
        [Column("CONFIG_NAME")]
        [MaxLength(200)]
        public string ConfigName { get; set; }

        /// <summary>
        /// 参数键Code
        /// </summary>
        [Column("CONFIG_KEY_CODE")]
        [MaxLength(200)]
        public string ConfigKeyCode { get; set; }

        /// <summary>
        /// 参数键值
        /// </summary>
        [Column("CONFIG_KEY_VALUE")]
        [MaxLength(500)]
        public string ConfigKeyValue { get; set; }
    }
}
